Skip to content

Conversation

@statham-arm
Copy link
Collaborator

@statham-arm statham-arm commented Oct 28, 2024

Building on Ubuntu 24.04, multilib-generate.py provokes some SyntaxWarning messages from Python 3.12, because of cases where we'd written \+ in a string, intended to be emitted literally. 3.12 still does emit it literally, but prints a warning pointing out that we should properly escape the backslash, writing it as \\+.

Copy link
Collaborator

@ostannard ostannard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Github made this confusing by removing some of the backslashes in the PR summary, you'll probably need to re-add them before merging.

Building on Ubuntu 24.04, multilib-generate.py provokes some
SyntaxWarning messages from Python 3.12, because of cases where we'd
written `\+` in a string, intended to be emitted literally. 3.12 still
_does_ emit it literally, but prints a warning pointing out that we
should properly escape the backslash, writing it as `\\+`.
@statham-arm
Copy link
Collaborator Author

Or rather, use backticks so that it will look sensible whether you read the commit message as Markdown or as plain text. I don't want to force people to look at commits on the website!

@statham-arm statham-arm merged commit 5993037 into ARM-software:main Oct 28, 2024
1 check passed
@statham-arm statham-arm deleted the python-syntaxwarning branch October 28, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants